<div class="demo-container" dAnchorBox dAnchorHashSupport [view]="{ top: 140, bottom: 0 }">
  <d-demo-nav [navItems]="navItems">></d-demo-nav>
  <div class="devui-demo-example" [dAnchor]="'basic-usage'">
    <div class="devui-demo-title">{{ 'components.category-search.basicDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="basicUsage" [sourceData]="basicSource">
      <d-basic demo></d-basic>
    </d-codebox>
  </div>
  
  <div class="devui-demo-example" [dAnchor]="'extend-template'">
    <div class="devui-demo-title">{{ 'components.category-search.extendDemo.title' | translate }}</div>
    <div class="devui-demo-text">
      {{ 'components.category-search.extendDemo.description' | translate }}
    </div>
    <d-codebox id="extendTemplate" [sourceData]="extendSource">
      <d-extend demo></d-extend>
    </d-codebox>
  </div>
  <div class="devui-demo-example" [dAnchor]="'auto-scroll'">
    <div class="devui-demo-title">{{ 'components.category-search.autoScrollDemo.title' | translate }}</div>
    <div class="devui-demo-text"></div>
    <d-codebox id="autoScroll" [sourceData]="autoScrollSource">
      <d-auto-scroll demo></d-auto-scroll>
    </d-codebox>
  </div>
</div>
